package cn.wbnyua.msm.web.service;

import cn.wbnyua.msm.web.dao.StaffMapper;
import cn.wbnyua.msm.web.domain.Goods;
import cn.wbnyua.msm.web.domain.Staff;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

/**
 * 作者：wbnyua.
 * 创建时间: 2023/2/8 22:57.
 */
@Service
public class StaffService {

    @Autowired
    private StaffMapper mapper;
    public List<Staff> findAll(){
        return mapper.findAll();
    }

    public Staff findById(Long id){
        return mapper.findById(id);
    }

    public int add(Staff staff){
        return mapper.add(staff);
    }

    public int update(Staff staff){
        return mapper.update(staff);
    }

    public int remove(Long id){
        return mapper.remove(id);
    }
}
